<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
    <script src="./lib/axios.js"></script>
</head>
<body>
    <button>调用接口</button>
</body>
<script type="module">
    // json-server --watch ./data/index.json --port 80 --host baidu.com --delay 2000

	import axios from "./index.js";
    document.querySelector("button").onclick = function(){
        axios({
            url:"http://aksjdfl.com"
        }).then(value=>{
			console.log(value);
        }).catch(reason=>{
			console.log("catch",reason)
        })
    }


</script>
</html>